package com.purchasing.system.payload.request;

import java.util.Set;
import javax.validation.constraints.*;
import lombok.Data;

@Data
public class CreateUserRequest {
    @NotBlank
    @Size(min = 3, max = 20)
    private String username;

    @NotBlank
    @Size(max = 50)
    @Email
    private String email;

    @NotBlank
    @Size(min = 6, max = 40)
    private String password;
    
    @NotBlank
    @Size(max = 50)
    private String name;
    
    @Size(max = 20)
    private String phone;
    
    @Size(max = 100)
    private String department;

    private Set<String> roles;
} 